export let option = function () {
    return {
        xAxis: {
            type: 'category',
            data: [],
            axisLine: {//x轴线的颜色以及宽度
                show: true,
                lineStyle: {
                    color: "rgba(44, 135, 232, 0.5)",
                }
            },
            axisLabel: {//x轴文字的配置
                show: true,
                textStyle: {
                    color: "rgba(44, 135, 232, 1)",
                }
            }
        },
        yAxis: {
            type: 'value',
            axisLine: {//x轴线的颜色以及宽度
                show: true,
                lineStyle: {
                    color: "rgba(44, 135, 232, 0.5)",
                }
            },
            axisLabel: {//x轴文字的配置
                show: true,
                textStyle: {
                    color: "rgba(44, 135, 232, 1)",
                }
            }
        },
        grid: {
            left: '1%',
            right: '1%',
            bottom: '1%',
            top: "10%",
            containLabel: true
        },
        series: [
            {
                data: [],
                type: 'bar',
                smooth: true,
                barWidth: "20px",
                itemStyle: {
                    //设置圆角
                    barBorderRadius: [15, 15, 0, 0],
                    color: new this.$echarts.graphic.LinearGradient(0, 0, 0, 1, [
                        {
                            offset: 0,
                            color: "#02a0ba",
                        },
                        // 百分之100状态之下的颜色值
                        {
                            offset: 1,
                            color: "#f9c01a",
                        },
                    ])
                },

            }
        ]
    };
}


